Fix Bug#16284.
authormartin rudalics <rudalics@gmx.at>
Mon, 30 Dec 2013 09:14:29 +0000 (10:14 +0100)
committermartin rudalics <rudalics@gmx.at>
Mon, 30 Dec 2013 09:14:29 +0000 (10:14 +0100)
* dispnew.c (change_frame_size_1): Take old width of root window
from that window's pixel width.  Bug#16284.

src/ChangeLog
src/dispnew.c

index ce298b497c8c08b52df50479ac0200d307fc5dc4..7547a1c4ad37ce1db9b224616ec0801738ab83a6 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-30  Martin Rudalics  <rudalics@gmx.at>
+
+       * dispnew.c (change_frame_size_1): Take old width of root window
+       from that window's pixel width.  Bug#16284.
+
 2013-12-29  Paul Eggert  <eggert@cs.ucla.edu>
 
        Plain copy-file no longer chmods an existing destination (Bug#16133).
index cbf1963feca0d1c14a61f449e90dc9d6501c6508..5ba07afe09d3a3ac8ad324bb132d1056f5846ca0 100644 (file)
@@ -5463,8 +5463,7 @@ change_frame_size_1 (struct frame *f, int new_width, int new_height,
                     bool pretend, bool delay, bool safe, bool pixelwise)
 {
   int new_text_width, new_text_height, new_root_width;
-  int old_root_width = (FRAME_PIXEL_WIDTH (f)
-                       - 2 * FRAME_INTERNAL_BORDER_WIDTH (f));
+  int old_root_width = WINDOW_PIXEL_WIDTH (XWINDOW (FRAME_ROOT_WINDOW (f)));
   int new_cols, new_lines;
   ptrdiff_t count = SPECPDL_INDEX ();